package me.zhengjie.modules.fund.repository;

import me.zhengjie.modules.fund.domain.UserFundFlow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Set;

public interface UserFundFlowRepository extends JpaRepository<UserFundFlow, Long>, JpaSpecificationExecutor<UserFundFlow> {

    /**
     * 根据Id删除
     *
     * @param ids /
     */
    void deleteAllByIdIn(Set<Long> ids);

    List<UserFundFlow> findByUserIdAndFundCode(Long userId, String fundCode);
}
